package com.githan.ksback_v2_3.Services;

import com.githan.ksback_v2_3.Entity.SysUser;
import com.githan.ksback_v2_3.Mapper.SysUserMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author https://github.com/Han56
 * @date 2021/4/19 18:04
 */
@Service
public class SysUserService implements SysUserMapper {

    @Autowired
    SysUserMapper sysUserMapper;

    @Override
    public List<SysUser> getAllUserInfo() {
        return sysUserMapper.getAllUserInfo();
    }

    @Override
    public SysUser findUserInfoByName(String username) {
        return sysUserMapper.findUserInfoByName(username);
    }

    @Override
    public List<String> getRoleCodeByUsername(String username) {
        return sysUserMapper.getRoleCodeByUsername(username);
    }
}
